<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title data-localize="lc_workcorrect"></title>

	<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
	<link rel="stylesheet" href="./style/page.css" >
	<link rel="stylesheet" href="./style/CSCorrecting.css">
	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
	<script type="text/javascript">
		var UserID= '<%=session.getAttribute("userid")%>';
        var LessonID=<%=request.getParameter("lid")%>;
		var Phase=<%=request.getParameter("p")%>;
        if(!UserID || UserID=="" || UserID=="null"){
            location.href="https://sso.supermap.com/login?service="+window.location.protocol+"//"+window.location.host+"/University/login";
        }else if(!LessonID || !Phase){
			location.href="./";
		}
	</script>
</head>
<body>
<%@ include file="head.jsp"%>
<div id="container" class="container-fluid">
	<img src="./script/layerui/skin/default/loading-1.gif" alt="loading">
	<div class="row">
		<div class="col-xs-1"></div>
		<div class="col-xs-8 stuCan">
			<div class="container-fluid" id="courseworkcrt">
				<!--课程作业-->
				<div class="container-fluid recruitcspageheader">
					<div class="row">
						<div class="col-xs-3">
							<img src="" alt="avatar" id="courseAvatar" />
						</div>
						<div class="col-xs-9" id="courseIntro"></div>
					</div>
				</div>
				<div class="myswitch">
					<input class="myswitch-checkbox" id="onoffswitch" type="checkbox">
					<label class="myswitch-label myswitch-borderS" for="onoffswitch">
						<span class="myswitch-inner" data-on="" data-off=""></span>
						<span class="myswitch-switch myswitch-borderS"></span>
					</label>
				</div>
				<button type="button" id="RETURNLABLIST" class="btn lessonBtn" style="display:none" onclick="showlabstulstpage()" data-localize="lc_returncorrectlist">
						<span class="glyphicon glyphicon-backward"></span>
				</button>
				<table class="table table-bordered table-striped table-hover">
					<thead id="TableHead">
					</thead>
					<tbody id="uncorrectedlisttbody">
					</tbody>
				</table>
			</div>
			<div class="container-fluid" id="studentworklist"><!--学生作业列表及打分-->
				<table class="table stuinfo">
					<tr>
						<td rowspan="2">
							<img id="stuavatar" alt="Userimg">
						</td>
						<td>
							<span><label data-localize="ms_nickname"></label>：<label id="stunickname"></label></span>
						</td>
						<td>
							<span><label data-localize="pm_school"></label>：<label id="stuuniversity"></label></span>
						</td>
					</tr>
					<tr>
						<td>
							<span><label data-localize="pm_studentName"></label>：<label id="stuname"></label></span>
						</td>
						<td>
							<span><label data-localize="ms_major"></label>：<label id="stumajor"></label></span>
						</td>
					</tr>
				</table>
				<button type="button" class="btn lessonBtn" onclick="showstuworklstpage()" data-localize="lc_returncorrectlist">
						<span class="glyphicon glyphicon-backward"></span>
				</button>
				<div class="container-fluid" id="stuworkCan">
					<table class="table table-bordered table-striped table-hover">
						<thead>
							<tr>
								<th data-localize="lab_labName"></th>
								<th data-localize="CSC_workLink"></th>
								<th data-localize="lc_score"></th>
								<th data-localize="CSC_Comment"></th>
								<th data-localize="labMg_handle"></th>
							</tr>
						</thead>
						<tbody id="homeworklistbody">
						</tbody>
					</table>
				</div>
			</div>
			<nav id="partpagenavbar">
				<ul class="pagination">

				</ul>
			</nav>
		</div>
		<div class="col-xs-2">
				<div id="advertisement" class="carousel slide" data-ride="carousel">
					<ol class="carousel-indicators">
					</ol>

					<div class="carousel-inner" role="listbox">
					</div>

					<a class="left carousel-control" href="#advertisement" role="button" data-slide="prev">
						<span class="glyphicon glyphicon-chevron-left"></span>
						<span class="sr-only" data-localize="nav_pre"></span>
					</a>
					<a class="right carousel-control" href="#advertisement" role="button" data-slide="next">
						<span class="glyphicon glyphicon-chevron-right"></span>
						<span class="sr-only" data-localize="nav_next"></span>
					</a>
				</div>
				<div id="supermapfaq">
					<h4 data-localize="ms_FAQ"></h4>
					<ul>
					</ul>
				</div>
			</div>
	</div>
</div>

      <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="http://cdn.bootcss.com/jquery/1.12.1/jquery.min.js"></script>
      <!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="http://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="script/jquery.i18n.properties.min.js"></script>
<script src="script/jquery.i18n.init.js"></script>
<script src="script/layerui/layer.js"></script>
<script src="script/CSCorrecting.js"></script>
</body>
</html>